| Constructor and Description |
|---|
EvaluatorObjective()
Creates a new evaluator for an objective with a zero weight.
|
EvaluatorObjective(EvaluatorObjective e)
Copies the data from the given EvaluatorObjective.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluatorObjective |
clone() |
java.lang.Double |
getEvaluation(UtilitySpace uspace,
Bid bid,
int index)
This method returns the utility of the value of an issue.
|
boolean |
getHasWeight() |
EVALUATORTYPE |
getType() |
double |
getWeight() |
java.lang.String |
isComplete(Objective whichobj)
Check whether the evaluator has enough information to make an evaluation.
|
void |
loadFromXML(SimpleElement pRoot)
Method to
|
void |
lockWeight()
Locks the weight of this Evaluator.
|
void |
setHasWeight(boolean doesHaveWeight) |
void |
setWeight(double wt)
Sets the weigth with which an Objective or Issue is evaluated.
|
SimpleElement |
setXML(SimpleElement evalObj)
Sets weights and evaluator properties for the object in SimpleElement representation that is passed to it.
|
void |
unlockWeight()
Unlock the weight of this evaluator.
|
boolean |
weightLocked() |
public EvaluatorObjective()
public EvaluatorObjective(EvaluatorObjective e)
e - other EvaluatorObjectivepublic EvaluatorObjective clone()
public double getWeight()
public void setWeight(double wt)
Evaluatorpublic void lockWeight()
lockWeight in interface Evaluatorpublic void unlockWeight()
unlockWeight in interface Evaluatorpublic void setHasWeight(boolean doesHaveWeight)
doesHaveWeight - signals that this objective has a weight.public boolean getHasWeight()
public boolean weightLocked()
weightLocked in interface Evaluatorpublic java.lang.Double getEvaluation(UtilitySpace uspace, Bid bid, int index)
EvaluatorgetEvaluation in interface Evaluatoruspace - preference profilebid - in which the value is contained.index - of the issue in the bid.public EVALUATORTYPE getType()
public void loadFromXML(SimpleElement pRoot)
EvaluatorloadFromXML in interface Evaluatorpublic SimpleElement setXML(SimpleElement evalObj)
evalObj - The object of which to set the evaluation properties.public java.lang.String isComplete(Objective whichobj)
EvaluatorisComplete in interface Evaluatorwhichobj - is the objective/issue to which this evaluator is attached.